package com.dlwx.firefighting.adapter;

import android.content.Context;
import android.widget.TextView;

import com.dlwx.firefighting.R;
import com.dlwx.firefighting.bean.IntegralDetailBean;
import com.dlwx.firefighting.utils.glide.GlideImageLoader;

/**
 * 积分详情adapter
 */

public class IntegralDetailAdapter extends ListBaseAdapter<IntegralDetailBean> {

    private GlideImageLoader imageLoader;

    public IntegralDetailAdapter(Context context) {
        super(context);
        imageLoader = new GlideImageLoader(context);
    }

    @Override
    public int getLayoutId() {
        return R.layout.integral_detail_item;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder, int position) {
        IntegralDetailBean bean = mDataList.get(position);

        TextView tv_name = holder.getView(R.id.integral_goods_name);
        TextView tv_date = holder.getView(R.id.integral_date);
        TextView tv_get = holder.getView(R.id.integral_get_tv);
        TextView  tv_expense= holder.getView(R.id.integral_expense_tv);
//
        tv_name.setText("订单编号:"+bean.getOrder_sn());
        tv_date.setText(bean.getTime());
        tv_get.setText( bean.getIntegral());
        tv_expense.setText( bean.getPay_integral());


    }
}
